<?php
if (!defined('baseinfo')) {
    exitdata();
}   
?>
<div class="wrpStat">
    <div class="wrpUpdtStt clearfix">
        <div class="updtStt fs03">
            <span>Last Update : </span>
            <span><?=date("d/m/Y")?></span>
        </div>
    </div>
    <div class="wrpBodyStat wrpOutTotalStat">
        <div class="wrpHdStat">
            <h1 class="fs09">The Total of Amount Post</h1>
        </div>
        <div class="wrpInBodyStat wrpTotalStat clearfix">
           <?if(count($data['stat']['feature'])){
               foreach($data['stat']['feature'] as $keyfeature=> $valuefeatures)
               {
           ?>
            <div class="itmTotalStat clBd2 bdFull clBg2">
                <div class="numItemTotalStat">
                    <span class="fs13 clTxt2"><?=number_format($valuefeatures)?></span>
                </div>
                <div class="nameItemTotalStat">
                    <span class="fs05 clTxt3"><?=$keyfeature?></span>
                </div>
            </div>
            
            <?
                }
                }
            ?>

            
            <div class="itmTotalStat clBd2 bdFull clBg2">
                <div class="numItemTotalStat">
                    <span class="fs13 clTxt2"><?=number_format($data['stat']['user'])?></span>
                </div>
                <div class="nameItemTotalStat">
                    <span class="fs05 clTxt3">Member</span>
                </div>
            </div>
            <div class="itmTotalStat clBd2 bdFull clBg2">
                <div class="numItemTotalStat">
                    <span class="fs13 clTxt2"><?=number_format($data['stat']['tag'])?></span>
                </div>
                <div class="nameItemTotalStat">
                    <span class="fs05 clTxt3">Tag</span>
                </div>
            </div>
        </div>
    </div>
    <div class="wrpBodyStat wrpOutSiteStat">
        <div class="wrpHdStat">
            <h1 class="fs09">Site Statistic</h1>
        </div>
        <div class="wrpInBodyStat wrpSiteStat">
            <div class="itmStat clBg2 clBd2 bdFull">
                <div class="itmInStt clearfix">
                    <div class="nameItemStat">
                        <span class="fs04 clTxt2 boldGen">The Most Popular Tag</span>
                    </div>
                    <div class="btnItemStat clearfix">
                        <div class="rdoStt">
                        <div class="reDesign rdStt">
                            <select id="featurereport1">
                                <option value="">เลือก feature</option>
                                <?if(count($data['feature'])){
                                
                                    foreach($data['feature'] as $valuefeature)
                                    {
                                     if($valuefeature['fid'])
                                     {
                                 ?>
                                <option value="<?=$valuefeature['fid']?>"><?=$valuefeature['name']?></option>
                                <?
                                     }
                                    }
                                
                                }?>
                            </select>
                        </div>
                    </div>
                        <div class="btnVoStt clearfix">
                            <input type="submit" onclick="setreport(1)" value="View" class="btnGen btnVwStt clTxtW cutTxt clBgSp2 fs04">
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="itmStat clBg2 clBd2 bdFull">
                <div class="itmInStt clearfix">
                    <div class="nameItemStat">
                        <span class="fs04 clTxt2 boldGen">The total of amount Tag </span>
                    </div>
                    <div class="btnItemStat clearfix">
                        <div class="rdoStt">
                        
                    </div>
                        <div class="btnVoStt clearfix">
                            <input type="submit" onclick="setreport(2)" value="View" class="btnGen btnVwStt clTxtW cutTxt clBgSp2 fs04">
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="itmStat clBg2 clBd2 bdFull">
                <div class="itmInStt clearfix">
                    <div class="nameItemStat">
                        <span class="fs04 clTxt2 boldGen">The Most Popular Product</span>
                    </div>
                    <div class="btnItemStat clearfix">
                        <div class="rdoStt">
                        <div class="reDesign rdStt">
                              <select id="featurestatus3">
                                 <option value="">เลือก รูปแบบ</option> 
                                <option value="1">ยี่ห้อ</option>
                                <option value="0">รุ่น</option>
                              
                            </select>
                        </div>
                    </div>
                        <div class="btnVoStt clearfix">
                            <input type="submit" onclick="setreport(3)" value="View" class="btnGen btnVwStt clTxtW cutTxt clBgSp2 fs04">
                        </div>
                    </div>
                </div>
            </div>
            <div class="itmStat clBg2 clBd2 bdFull">
                <div class="itmInStt clearfix">
                    <div class="nameItemStat">
                        <span class="fs04 clTxt2 boldGen">The Most Popular Member</span>
                    </div>
                    <div class="btnItemStat clearfix">
                        <div class="rdoStt">
                        <div class="reDesign rdStt">
                              <select id="featurestatus4">
                                 <option value="">เลือก Follow</option> 
                                <option value="2">Follower</option>
                                <option value="1">Following</option>
                              
                            </select>
                        </div>
                    </div>
                        <div class="btnVoStt clearfix">
                            <input type="submit" onclick="setreport(4)" value="View" class="btnGen btnVwStt clTxtW cutTxt clBgSp2 fs04">
                        </div>
                    </div>
                </div>
            </div>
            <div class="itmStat clBg2 clBd2 bdFull">
                <div class="itmInStt clearfix">
                    <div class="nameItemStat">
                        <span class="fs04 clTxt2 boldGen">The Most Popular Location</span>
                    </div>
                    <div class="btnItemStat clearfix">
                        <div class="rdoStt">

                    </div>
                        <div class="btnVoStt clearfix">
                            <input type="submit" onclick="setreport(5)" value="View" class="btnGen btnVwStt clTxtW cutTxt clBgSp2 fs04">
                        </div>
                    </div>
                </div>
            </div>
            <div class="itmStat clBg2 clBd2 bdFull">
                <div class="itmInStt clearfix">
                    <div class="nameItemStat">
                        <span class="fs04 clTxt2 boldGen">The Most Popular Content</span>
                    </div>
                    <div class="btnItemStat clearfix">
                        <div class="rdoStt">
                        <div class="reDesign rdStt">
                            <select id="featurereport6">
                                    <option value="">เลือก feature</option> 
                                <?if(count($data['feature'])){
                                
                                    foreach($data['feature'] as $valuefeature)
                                    {
                                     if($valuefeature['fid'])
                                     {
                                 ?>
                                <option value="<?=$valuefeature['fid']?>"><?=$valuefeature['name']?></option>
                                <?
                                     }
                                    }
                                
                                }?>
                            </select>
                        </div>
                    </div>
                        <div class="btnVoStt clearfix">
                            <input type="submit" onclick="setreport(6)" value="View" class="btnGen btnVwStt clTxtW cutTxt clBgSp2 fs04">
                        </div>
                    </div>
                </div>
            </div>
            <div class="itmStat clBg2 clBd2 bdFull">
                <div class="itmInStt clearfix">
                    <div class="nameItemStat">
                        <span class="fs04 clTxt2 boldGen">The Most Popular Activity</span>
                    </div>
                    <div class="btnItemStat clearfix">
                        <div class="rdoStt">
                      
                    </div>
                        <div class="btnVoStt clearfix">
                            <input type="submit" onclick="setreport(7)" value="View" class="btnGen btnVwStt clTxtW cutTxt clBgSp2 fs04">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="wrpBodyStat wrpOutActStat">
        <div class="wrpHdStat">
            <h1 class="fs09">Total Statistic</h1>
        </div>
        <div class="wrpInBodyStat wrpActStat">
        
            <div class="itmStat clBg2 clBd2 bdFull">
                <div class="itmInStt clearfix">
                    <div class="nameItemStat">
                        <span class="fs04 clTxt2 boldGen"> Photograph Data</span>
                    </div>
                    <div class="btnItemStat clearfix">
                        <div class="rdoStt">

                    </div>
                        <div class="btnVoStt clearfix">
                            <input type="submit" onclick="setreport(8)" value="View" class="btnGen btnVwStt clTxtW cutTxt clBgSp2 fs04">
                        </div>
                    </div>
                </div>
                </div>
                
                
                <div class="itmStat clBg2 clBd2 bdFull">
                <div class="itmInStt clearfix">
                    <div class="nameItemStat">
                        <span class="fs04 clTxt2 boldGen"> Candidate Data</span>
                    </div>
                    <div class="btnItemStat clearfix">
                        <div class="rdoStt">

                    </div>
                        <div class="btnVoStt clearfix">
                            <input type="submit" onclick="setreport(10)" value="View" class="btnGen btnVwStt clTxtW cutTxt clBgSp2 fs04">
                        </div>
                    </div>
                </div>
                </div>
                
                
            <div class="itmStat clBg2 clBd2 bdFull">
                <div class="itmInStt clearfix">
                    <div class="nameItemStat">
                        <span class="fs04 clTxt2 boldGen">Article Data</span>
                    </div>
                    <div class="btnItemStat clearfix">
                        <div class="rdoStt">

                    </div>
                        <div class="btnVoStt clearfix">
                            <input type="submit" onclick="setreport(9)" value="View" class="btnGen btnVwStt clTxtW cutTxt clBgSp2 fs04">
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
    <div class="wrpBodyStat wrpOutActStat">
        <div class="wrpHdStat">
            <h1 class="fs09">Post Statistic</h1>
        </div>
        <div class="wrpInBodyStat wrpActStat">
        <div class="itmStat clBg2 clBd2 bdFull">
                <div class="itmInStt clearfix">
                    <div class="nameItemStat">
                        <span class="fs04 clTxt2 boldGen"> Post Statistic</span>
                    </div>
                    <div class="btnItemStat clearfix">
                        <div class="rdoStt">

                    </div>
                        <div class="btnVoStt clearfix">
                            <input type="submit" onclick="setreport(13)" value="View" class="btnGen btnVwStt clTxtW cutTxt clBgSp2 fs04">
                        </div>
                    </div>
                </div>
                </div>
        </div>
    </div>
</div>